<?php 
	
	include "../../config.php";
	require_once DOC_ROOT."lib/connection.php";
	include ADMIN_ROOT."templates/header.php";
	include ADMIN_ROOT."templates/left.php";	
?>

<div class="main-content">
	<?php
		if(!$_POST){
			$id =  $_GET["id"];
			$stmt= sqlsrv_query($con,"SELECT * FROM users WHERE user_id=?",array($id));
			if($row = sqlsrv_fetch($stmt)){
				include ADMIN_ROOT."views/edit.php";			
			}
		}
	?>
</div>
<?php	
	include ADMIN_ROOT."templates/footer.php";	
?>
